
/** 
*Copyright 2017 Yonyou Corporation Ltd. All Rights Reserved.
* This software is published under the terms of the Yonyou Software
* License version 1.0, a copy of which has been included with this
* distribution in the LICENSE.txt file.
*
* @Project Name : dms.retail
*
* @File name : BasicComController.java
*
* @Author : RenWeiDong
*
* @Date : 2017年5月24日
*
----------------------------------------------------------------------------------
*     Date       Who       Version     Comments
* 1. 2017年5月24日    RenWeiDong    1.0
*
*
*
*
----------------------------------------------------------------------------------
*/

package com.yonyou.cyxdms.sysAuth.service.controller.message;

import com.yonyou.cyxdms.sysAuth.service.service.message.ProducerMsgService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * notify发送消息
 * 
 * @author 马邢健
 * @date 2019年11月05日
 */
@Api(value = "notify发送消息", tags = {"notify发送消息"})
@RestController
@RequestMapping("/ProducerMsg")
public class ProducerMsgController {

    private final Logger logger = LoggerFactory.getLogger(ProducerMsgController.class);

    @Autowired
    ProducerMsgService producerMsgService;

    @GetMapping(value = "/sendMapParam")
    @ApiImplicitParams({@ApiImplicitParam(value = "用户id", name = "userId", required = true, dataType = "string", paramType = "header"),
                         @ApiImplicitParam(value = "pc/APP", name = "userAgent", required = true, dataType = "string", paramType = "header")})
    public void sendMapParam(@RequestParam(value = "ownerCode", required = false) String ownerCode,
                             @RequestParam(value = "ownerParCode", required = false) String ownerParCode,
                             @RequestParam(value = "companyCode", required = false) String companyCode) {
        producerMsgService.sendMsgForParam(ownerCode,ownerParCode,companyCode);
    }



}
